'use strict';

const Controller = require('egg').Controller;

class DetailController extends Controller {
  async index() {
    const { ctx } = this;
    var id = ctx.request.query.id.trim()
    var data = await ctx.model.Top250.find({_id:id})
    ctx.body = {
        code:200,
        res:data[0],
        msg:"电影详情"
        }
    }
  }

module.exports = DetailController;